﻿
using Caliburn.Micro;
namespace BankerenClient
{
    public class ServerInfoViewModel : PropertyChangedBase
    {
        #region Fields

        private string serverName;
        private int players;
        private bool hasPassword;

        #endregion

        #region Properties

        public string ServerName
        {
            get { return this.serverName; }
            set
            {
                this.serverName = value;
                NotifyOfPropertyChange(() => ServerName);
            }
        }

        public int Players
        {
            get { return this.players; }
            set
            {
                this.players = value;
                NotifyOfPropertyChange(() => Players);
            }
        }

        public bool HasPassword
        {
            get { return this.hasPassword; }
            set
            {
                this.hasPassword = value;
                NotifyOfPropertyChange(() => HasPassword);
            }
        }

        #endregion

        #region Ctor

        public ServerInfoViewModel()
        {
            this.serverName = "BankerenServer";
            this.players = 0;
            this.hasPassword = false;
        }

        #endregion
    }
}
